//
//  VistaBuscarProductoEnTodas.h
//  ProyectoMoviTiendas
//
//  Created by Daniel Paez on 3/8/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MoviTiendas.h"

@interface VistaBuscarProductoEnTodas : UITableViewController <UISearchBarDelegate>
{
    IBOutlet UISegmentedControl *segControl;
    IBOutlet UILabel *lblNoFavoritas;
    IBOutlet UISearchBar *barBusqueda;
    IBOutlet UIBarButtonItem *btnCancelar;
    
    MoviTiendas * principal;
    NSMutableArray * selectedIndexes;
    NSArray *tiendas;
    NSArray *favoritas;
    NSMutableArray * resultados;  
    NSMutableArray * items;  
}

@property (nonatomic, retain) IBOutlet UISegmentedControl *segControl;
@property (strong, nonatomic) IBOutlet UILabel *lblNoFavoritas;
@property (strong, nonatomic) IBOutlet UISearchBar *barBusqueda;
@property (nonatomic, retain) MoviTiendas *principal;
@property (nonatomic, retain) NSMutableArray * selectedIndexes;
@property (nonatomic, retain) NSMutableArray * items;
@property (nonatomic, retain) NSArray *tiendas;
@property (nonatomic, retain) NSArray *favoritas;
@property (nonatomic, retain) NSMutableArray *resultados;
@property (strong, nonatomic) IBOutlet UIBarButtonItem *btnCancelar;

- (IBAction)switchSegmentedControl:(id)sender;
- (IBAction)esconderTeclado:(id)sender;
- (void)buscarProductos:(NSString *)searchText;


@end
